<template>
  <div>
    <h2>事件修饰符</h2>
      <div class="box" @click="bb">
        <a href="https://www.baidu.com" @click.passive.stop="aa">跳转到百度</a>

  </div>
  <!-- 安检修饰符 只能给 keyup keydown 绑定 -->
  <input type="text" @keyup.enter="cc">

  </div>
</template>

<script>
export default {
  methods: {
    aa () {
      console.log(11);
    },
    bb (){ 
      console.log(22);
    },
    cc(e){
      console.log(e.target.value) //输出 输入框的值
    }
  }
}
</script>

<style>
.box {
  width: 300px;
  height: 300px;
  background-color: skyblue;
}
</style>
